package com.cg.managesystem.service;

import com.cg.managesystem.entity.Repair;

import java.util.List;

/**
 * Created on 2019/8/13 by Tinchi
 **/
public interface RepairService {

    List<Repair> findAllRepairs();
    int addRepair(Repair repair);
    int deleteRepairById(String id);
    int updateRepairById(Repair record);
    Repair selectRepairById(String id);

    //  根据订单id查询保修订单
    Repair selectByRepairId(String id);

    //  根据用户id查询保修订单
    Repair selectByUserId(Integer uid);

    //  根据维修工人查询报修订单
    List<Repair> selectByWorkerId(String worker);

    //  根据保修的开始时间查询保修订单
    List<Repair> selectByStarttime(String starttime);

}
